package com.sunwayworld.basemodule.common.asynctask.resource;

import com.sunwayworld.basemodule.common.asynctask.bean.LimsAsynctaskScheduleBean;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@RequestMapping("/open/module/application")
public interface ApplicationLiveResource {
    @Log(
            value = "检测异步任务节点存活情况",
            type = LogType.SELECT
    )
    @RequestMapping(
            value = {"/checkLive"},
            method = {RequestMethod.GET}
    )
    String checkLive();

    @Log(
            value = "检测异步服务节点线程池情况",
            type = LogType.SELECT
    )
    @RequestMapping(
            value = {"/asyncServer/scheduleStatus"},
            method = {RequestMethod.POST}
    )
    List<LimsAsynctaskScheduleBean> asyncServerScheduleStatus(RestJsonWrapperBean wrapperBean);

}
